package com.demo2do.fms.admin.entity.export.report;

import org.apache.commons.lang3.StringUtils;

import com.demo2do.fms.entity.supplier.common.Supplier;

/**
 *
 * @author Ark
 *
 */
public class TransportToolSheet {
    
    /* ============= 运输公司信息 ================= */

    /** 运输公司代码 */
    private String supplierCode;
    
    /** 运输公司名称 */
    private String supplierName;
    
    /** 总运力 */
    private int totalVehicles;
    
    private String businessTypeDescription;
    
    private String businessNatureDescription;
    
    /* ============= 车型信息 ================= */
    
    /** 1位车型数量 */
    private int oneLoads;
    
    /** 2位车型数量 */
    private int twoLoads;
    
    /** 6位车型数量 */
    private int sixLoads;
    
    /** 7位车型数量 */
    private int sevenLoads;
    
    /** 8位车型数量 */
    private int eightLoads;
    
    /** 10位车型数量 */
    private int tenLoads;
    
    /** 12位车型数量 */
    private int twelveLoads;
    
    /** 超过14位车型数量 */
    private int fourteenLoads;
    
    /** 其他车型数量 */
    private int otherLoads;
    
    /** 平均装载量 */
    private int avgLoads;
    
    /** 平均车龄 */
    private int avgVehicleAge;
    
    /** 有效运力（已同步车辆） */
    private int syncVehicles;
    
    /** 锁定运力 */
    private int lockVehicles;
    
    /**
     * The default constructor
     */
    public TransportToolSheet() {
    }

    /**
     * 
     * @param supplier
     * @param totalVehicles
     * @param oneLoads
     * @param twoLoads
     * @param sixLoads
     * @param sevenLoads
     * @param eightLoads
     * @param tenLoads
     * @param twelveLoads
     * @param fourteenLoads
     * @param otherLoads
     * @param avgLoads
     * @param avgVehicleAge
     * @param syncVehicles
     * @param lockVehicles
     */
    public TransportToolSheet(Supplier supplier, int totalVehicles, int oneLoads, int twoLoads,
            int sixLoads, int sevenLoads, int eightLoads, int tenLoads, int twelveLoads, int fourteenLoads,
            int otherLoads, int avgLoads, int avgVehicleAge, int syncVehicles, int lockVehicles) {
        this.supplierCode = supplier.getCode();
        this.supplierName = supplier.getShortName();
        if (StringUtils.isNotEmpty(supplier.getBusinessTypeDescription())) {
            this.businessTypeDescription = supplier.getBusinessTypeDescription();
        }
        if (supplier.getBusinessNature() != null && StringUtils.isNotEmpty(supplier.getBusinessNature().getDescription())) {
            this.businessNatureDescription = supplier.getBusinessNature().getDescription();
        }
        this.totalVehicles = totalVehicles;
        this.oneLoads = oneLoads;
        this.twoLoads = twoLoads;
        this.sixLoads = sixLoads;
        this.sevenLoads = sevenLoads;
        this.eightLoads = eightLoads;
        this.tenLoads = tenLoads;
        this.twelveLoads = twelveLoads;
        this.fourteenLoads = fourteenLoads;
        this.otherLoads = otherLoads;
        this.avgLoads = avgLoads;
        this.avgVehicleAge = avgVehicleAge;
        this.syncVehicles = syncVehicles;
        this.lockVehicles = lockVehicles;
    }

    /**
     * @return the supplierCode
     */
    public String getSupplierCode() {
        return supplierCode;
    }

    /**
     * @return the supplierName
     */
    public String getSupplierName() {
        return supplierName;
    }

    /**
     * @return the totalVehicles
     */
    public int getTotalVehicles() {
        return totalVehicles;
    }

    /**
     * @return the businessTypeDescription
     */
    public String getBusinessTypeDescription() {
        return businessTypeDescription;
    }

    /**
     * @return the businessNatureDescription
     */
    public String getBusinessNatureDescription() {
        return businessNatureDescription;
    }

    /**
     * @return the oneLoads
     */
    public int getOneLoads() {
        return oneLoads;
    }

    /**
     * @return the twoLoads
     */
    public int getTwoLoads() {
        return twoLoads;
    }

    /**
     * @return the sixLoads
     */
    public int getSixLoads() {
        return sixLoads;
    }

    /**
     * @return the sevenLoads
     */
    public int getSevenLoads() {
        return sevenLoads;
    }

    /**
     * @return the eightLoads
     */
    public int getEightLoads() {
        return eightLoads;
    }

    /**
     * @return the tenLoads
     */
    public int getTenLoads() {
        return tenLoads;
    }

    /**
     * @return the twelveLoads
     */
    public int getTwelveLoads() {
        return twelveLoads;
    }

    /**
     * @return the fourteenLoads
     */
    public int getFourteenLoads() {
        return fourteenLoads;
    }

    /**
     * @return the otherLoads
     */
    public int getOtherLoads() {
        return otherLoads;
    }

    /**
     * @return the avgLoads
     */
    public int getAvgLoads() {
        return avgLoads;
    }

    /**
     * @return the avgVehicleAge
     */
    public int getAvgVehicleAge() {
        return avgVehicleAge;
    }

    /**
     * @return the syncVehicles
     */
    public int getSyncVehicles() {
        return syncVehicles;
    }

    /**
     * @return the lockVehicles
     */
    public int getLockVehicles() {
        return lockVehicles;
    }

    /**
     * @param supplierCode the supplierCode to set
     */
    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    /**
     * @param supplierName the supplierName to set
     */
    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    /**
     * @param totalVehicles the totalVehicles to set
     */
    public void setTotalVehicles(int totalVehicles) {
        this.totalVehicles = totalVehicles;
    }

    /**
     * @param businessTypeDescription the businessTypeDescription to set
     */
    public void setBusinessTypeDescription(String businessTypeDescription) {
        this.businessTypeDescription = businessTypeDescription;
    }

    /**
     * @param businessNatureDescription the businessNatureDescription to set
     */
    public void setBusinessNatureDescription(String businessNatureDescription) {
        this.businessNatureDescription = businessNatureDescription;
    }

    /**
     * @param oneLoads the oneLoads to set
     */
    public void setOneLoads(int oneLoads) {
        this.oneLoads = oneLoads;
    }

    /**
     * @param twoLoads the twoLoads to set
     */
    public void setTwoLoads(int twoLoads) {
        this.twoLoads = twoLoads;
    }

    /**
     * @param sixLoads the sixLoads to set
     */
    public void setSixLoads(int sixLoads) {
        this.sixLoads = sixLoads;
    }

    /**
     * @param sevenLoads the sevenLoads to set
     */
    public void setSevenLoads(int sevenLoads) {
        this.sevenLoads = sevenLoads;
    }

    /**
     * @param eightLoads the eightLoads to set
     */
    public void setEightLoads(int eightLoads) {
        this.eightLoads = eightLoads;
    }

    /**
     * @param tenLoads the tenLoads to set
     */
    public void setTenLoads(int tenLoads) {
        this.tenLoads = tenLoads;
    }

    /**
     * @param twelveLoads the twelveLoads to set
     */
    public void setTwelveLoads(int twelveLoads) {
        this.twelveLoads = twelveLoads;
    }

    /**
     * @param fourteenLoads the fourteenLoads to set
     */
    public void setFourteenLoads(int fourteenLoads) {
        this.fourteenLoads = fourteenLoads;
    }

    /**
     * @param otherLoads the otherLoads to set
     */
    public void setOtherLoads(int otherLoads) {
        this.otherLoads = otherLoads;
    }

    /**
     * @param avgLoads the avgLoads to set
     */
    public void setAvgLoads(int avgLoads) {
        this.avgLoads = avgLoads;
    }

    /**
     * @param avgVehicleAge the avgVehicleAge to set
     */
    public void setAvgVehicleAge(int avgVehicleAge) {
        this.avgVehicleAge = avgVehicleAge;
    }

    /**
     * @param syncVehicles the syncVehicles to set
     */
    public void setSyncVehicles(int syncVehicles) {
        this.syncVehicles = syncVehicles;
    }

    /**
     * @param lockVehicles the lockVehicles to set
     */
    public void setLockVehicles(int lockVehicles) {
        this.lockVehicles = lockVehicles;
    }

}
